using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Web.Mvc;

namespace Coderoom.ScrumPlanner.Web.Helpers
{
	public static class StaticResourceExtensions
	{
		[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "helper")]
		public static string LinkCssFile(this HtmlHelper helper, string cssFileName)
		{
			return string.Format(CultureInfo.InvariantCulture, "<link href=\"/styles/{0}\" rel=\"stylesheet\" type=\"text/css\" />", cssFileName);
		}

		[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "helper")]
		public static string LinkJsFile(this HtmlHelper helper, string jsFileName)
		{
			return string.Format(CultureInfo.InvariantCulture, "<script src=\"/behaviors/{0}\" type=\"text/javascript\"></script>", jsFileName);
		}
	}
}